package cn.paul.wechatshop.dao;

import cn.paul.wechatshop.entity.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author 徐凌峰
 * @date 2017/12/12 0012
 */
@Repository
public interface OrderMasterDao extends JpaRepository<OrderMaster,String> {
    /**
     *根据买家的微信id分页查询订单
     * @param openid
     * @param pageable
     * @return
     */
      Page<OrderMaster> findByBuyerOpenid(String openid, Pageable pageable);
}
